An irrational interval or ratio of frequencies given by a real number r has an infinite list of nearest just intervals; if r is rational, the list is finite, terminating in r. For arbitrary (including negative) real numbers this corresponds to what number theorists call best rational approximations. A ratio of integers p/q with q > 0 and p and q relatively prime is a best rational approximation if there is no ratio m/n with n < q which is a better approximation to r. If r is an interval of music it is positive, and both p and q are positive. Note that a nearest just interval is not necessarily nearest in logarithmic terms; 4/3 and 3/2 are the same distance in cents from √2 = 600 cents, but |4/3 - √2| = .08088 whereas |3/2 - √2| = 0.08479, which is larger.
Best rational approximations also arise in music theory logarithmically, as the best rational approximations to the logarithm base two of some number such as 3/2 or ∜5 is often of interest.
The semiconvergents of the continued fraction for r include all of the best rational approximations. The convergents are equivalent with a stronger notion of best approximation, namely best relative approximation. Here it is required that |qr - p| is less than |nr - m| for any n < q.
Examples
Approximations for Ratios (of Pure Intervals)
The best rational approximations to log2(3/2) define edos which have especially good approximations to the fifth (701.955000865... cents):
Best rational approximations also arise in music theory logarithmically, as the best rational approximations to the logarithm base two of some number such as 3/2 or ∜5 is often of interest.
The semiconvergents of the continued fraction for r include all of the best rational approximations. The convergents are equivalent with a stronger notion of best approximation, namely best relative approximation. Here it is required that |qr - p| is less than |nr - m| for any n < q.
Examples
Approximations for Ratios (of Pure Intervals)
The best rational approximations to log2(3/2) define edos which have especially good approximations to the fifth (701.955000865... cents):Approximation for Logarihmic Measures
The 600-cent interval sqrt(2) (6 steps of 12edo, "Tritone") approximates following ratios:The 300-cent interval 2^(1/4) (3 steps of 12edo, "minor third") approximates following ratios: